/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gidoo.websites.example;

import java.util.ArrayList;
import java.util.List;
import org.gidoo.cms.GidooCMS;
import org.gidoo.cms.IAdminPlugin;
import org.gidoo.cms.IEditPlugin;
import org.gidoo.cms.IPlugin;
import org.gidoo.websites.example.plugins.TestAdminPlugin;
import org.gidoo.websites.example.plugins.TestEditingPlugin;
import org.gidoo.websites.example.plugins.TestPublishingPlugin;

/**
 * This is the main class. 
 * @author thomas
 */
public class App extends GidooCMS
{
  @Override
  public String getConfigurationType()
  {
    return DEPLOYMENT;
  }

  @Override
  public Class getCMSMainPage()
  {
    return View.class;
  }

  @Override
  public List<? extends IPlugin> getPublishPlugins()
  {
    List<IPlugin> list = new ArrayList<IPlugin>();
    list.add(new TestPublishingPlugin());
    return list;
  }

  @Override
  public List<? extends IEditPlugin> getEditPlugins()
  {
    List<IEditPlugin> list = new ArrayList<IEditPlugin>();
    list.add(new TestEditingPlugin());
    return list;
  }

  @Override
  public List<? extends IAdminPlugin> getAdminPlugins()
  {
    List<IAdminPlugin> list = new ArrayList<IAdminPlugin>();
    list.add(new TestAdminPlugin());
    return list;
  }
  
  
  
  
}

